home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
boot
/
netBoot.new
/
dev
/
dklabel.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-19
|
1KB
|
42 lines
/* @(#)dklabel.h 1.1 86/09/27 SMI */
/*
* Copyright (c) 1986 by Sun Microsystems, Inc.
*/
/*
* Format of a Sun SMD disk label.
* Resides in cylinder 0, sector 0 on each head which is the first
* head of a physical partition (e.g., heads 0 and 2 for a CDC Lark).
* dkl_ppart gives the physical partition number (currently only 0 or 1).
* dkl_bhead must match the head on which the label is found;
* otherwise the label was probably overwritten by another.
*
* sizeof(struct dk_label) should be 512 (sector size)
*/
#define NDKMAP 8 /* # of logical partitions */
struct dk_label {
char dkl_asciilabel[128]; /* for compatibility */
char dkl_pad[512-(128+8*8+11*2)];
unsigned short dkl_gap1; /* size of gap 1 */
unsigned short dkl_gap2; /* size of gap 2 */
unsigned short dkl_intrlv; /* interleave factor */
unsigned short dkl_ncyl; /* # of data cylinders */
unsigned short dkl_acyl; /* # of alternate cylinders */
unsigned short dkl_nhead; /* # of heads in this partition */
unsigned short dkl_nsect; /* # of 512 byte sectors per track */
unsigned short dkl_bhead; /* identifies proper label location */
unsigned short dkl_ppart; /* physical partition # */
/* */
struct dk_map { /* logical partitions */
daddr_t dkl_cylno; /* starting cylinder */
daddr_t dkl_nblk; /* number of blocks */
} dkl_map[NDKMAP];
unsigned short dkl_magic; /* identifies this label format */
unsigned short dkl_cksum; /* xor checksum of sector */
};
#define DKL_MAGIC 0xDABE